<?php
namespace app\admin\model;
use think\Model;
class Role extends Model
{
    protected $pk = 'role_id';
    //数据输出显示属性
    public static $showField = ['role_id', 'name'];
    // 查询角色-权限记录表
    public function auths()
    {
        return $this->belongsToMany(Auth::class,RoleAuth::class);
    }
}